package uk.ac.staffs.student.autopilot.views;

import javax.swing.JFrame;

public class APHciMissionReadySwingPanel extends javax.swing.JPanel {

    /**
	 * 
	 */
    private static final long serialVersionUID = 1L;
    private JFrame frame;

    public APHciMissionReadySwingPanel() {
        initComponents();
    }
    
    public APHciMissionReadySwingPanel(JFrame frame) {
    	this.frame = frame;
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {

        mrModePanel2 = new javax.swing.JPanel();
        mrModeSndLabel = new javax.swing.JLabel();
        wayPoint1Panel = new javax.swing.JPanel();
        way1LongTxtF = new javax.swing.JTextField("0.00");
        way1LongLabel = new javax.swing.JLabel();
        way1Label = new javax.swing.JLabel();
        way1LatTxtf = new javax.swing.JTextField("0.00");
        way1LatLabel = new javax.swing.JLabel();
        way1AltTxtF = new javax.swing.JTextField("0.00");
        way1AltLabel = new javax.swing.JLabel();
        wayPoint2Label = new javax.swing.JLabel();
        wayPoint3Label = new javax.swing.JLabel();
        way2LongTxtF = new javax.swing.JTextField("0.00");
        way2LatTxtF = new javax.swing.JTextField("0.00");
        way2AltTxtF = new javax.swing.JTextField("0.00");
        way3LongTxtF = new javax.swing.JTextField("0.00");
        way3LatTxtF = new javax.swing.JTextField("0.00");
        way3AltTxtF = new javax.swing.JTextField("0.00");

        mrModeSndLabel.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        mrModeSndLabel.setText("Enter Navigation Details");

        wayPoint1Panel
                .setBorder(javax.swing.BorderFactory.createEtchedBorder());

        way1LongLabel.setText("Longitude:");

        way1Label.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        way1Label.setText("Way Point 1:");

        way1LatLabel.setText("Latitude:");

        way1AltLabel.setText("Altitude:");

        wayPoint2Label.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        wayPoint2Label.setText("Way Point 2:");

        wayPoint3Label.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        wayPoint3Label.setText("Way Point 3:");

        final javax.swing.GroupLayout wayPoint1PanelLayout = new javax.swing.GroupLayout(
                wayPoint1Panel);
        wayPoint1Panel.setLayout(wayPoint1PanelLayout);
        wayPoint1PanelLayout
                .setHorizontalGroup(wayPoint1PanelLayout
                        .createParallelGroup(
                                javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(
                                wayPoint1PanelLayout
                                        .createSequentialGroup()
                                        .addContainerGap()
                                        .addGroup(
                                                wayPoint1PanelLayout
                                                        .createParallelGroup(
                                                                javax.swing.GroupLayout.Alignment.LEADING)
                                                        .addComponent(
                                                                way1LongLabel)
                                                        .addComponent(
                                                                way1LatLabel)
                                                        .addComponent(
                                                                way1AltLabel))
                                        .addPreferredGap(
                                                javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(
                                                wayPoint1PanelLayout
                                                        .createParallelGroup(
                                                                javax.swing.GroupLayout.Alignment.CENTER)
                                                        .addComponent(way1Label)
                                                        .addComponent(
                                                                way1LongTxtF,
                                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                109,
                                                                Short.MAX_VALUE)
                                                        .addComponent(
                                                                way1LatTxtf,
                                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                109,
                                                                Short.MAX_VALUE)
                                                        .addComponent(
                                                                way1AltTxtF,
                                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                109,
                                                                Short.MAX_VALUE))
                                        .addPreferredGap(
                                                javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(
                                                wayPoint1PanelLayout
                                                        .createParallelGroup(
                                                                javax.swing.GroupLayout.Alignment.CENTER)
                                                        .addComponent(
                                                                wayPoint2Label)
                                                        .addComponent(
                                                                way2LongTxtF,
                                                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                109,
                                                                javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addComponent(
                                                                way2LatTxtF,
                                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                109,
                                                                Short.MAX_VALUE)
                                                        .addComponent(
                                                                way2AltTxtF,
                                                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                108,
                                                                javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addPreferredGap(
                                                javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(
                                                wayPoint1PanelLayout
                                                        .createParallelGroup(
                                                                javax.swing.GroupLayout.Alignment.CENTER)
                                                        .addComponent(
                                                                wayPoint3Label)
                                                        .addComponent(
                                                                way3LongTxtF,
                                                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                100,
                                                                javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addComponent(
                                                                way3LatTxtF,
                                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                109,
                                                                Short.MAX_VALUE)
                                                        .addComponent(
                                                                way3AltTxtF,
                                                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                98,
                                                                javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addContainerGap()));

        wayPoint1PanelLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
                new java.awt.Component[] { way1AltTxtF, way1LatTxtf,
                        way1LongTxtF, way2AltTxtF, way2LatTxtF, way2LongTxtF,
                        way3AltTxtF, way3LatTxtF, way3LongTxtF });

        wayPoint1PanelLayout
                .setVerticalGroup(wayPoint1PanelLayout
                        .createParallelGroup(
                                javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(
                                javax.swing.GroupLayout.Alignment.TRAILING,
                                wayPoint1PanelLayout
                                        .createSequentialGroup()
                                        .addGap(14, 14, 14)
                                        .addGroup(
                                                wayPoint1PanelLayout
                                                        .createParallelGroup(
                                                                javax.swing.GroupLayout.Alignment.BASELINE)
                                                        .addComponent(way1Label)
                                                        .addComponent(
                                                                wayPoint2Label)
                                                        .addComponent(
                                                                wayPoint3Label))
                                        .addPreferredGap(
                                                javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(
                                                wayPoint1PanelLayout
                                                        .createParallelGroup(
                                                                javax.swing.GroupLayout.Alignment.CENTER)
                                                        .addComponent(
                                                                way1LatLabel)
                                                        .addComponent(
                                                                way1LongTxtF,
                                                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addComponent(
                                                                way2LongTxtF,
                                                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addComponent(
                                                                way3LongTxtF,
                                                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addPreferredGap(
                                                javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(
                                                wayPoint1PanelLayout
                                                        .createParallelGroup(
                                                                javax.swing.GroupLayout.Alignment.CENTER)
                                                        .addComponent(
                                                                way1LongLabel)
                                                        .addComponent(
                                                                way1LatTxtf,
                                                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addComponent(
                                                                way2LatTxtF,
                                                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addComponent(
                                                                way3LatTxtF,
                                                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addPreferredGap(
                                                javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(
                                                wayPoint1PanelLayout
                                                        .createParallelGroup(
                                                                javax.swing.GroupLayout.Alignment.CENTER)
                                                        .addComponent(
                                                                way1AltLabel)
                                                        .addComponent(
                                                                way1AltTxtF,
                                                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addComponent(
                                                                way2AltTxtF,
                                                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addComponent(
                                                                way3AltTxtF,
                                                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGap(215, 215, 215)));

        wayPoint1PanelLayout.linkSize(javax.swing.SwingConstants.VERTICAL,
                new java.awt.Component[] { way1AltTxtF, way1LatTxtf,
                        way1LongTxtF, way2AltTxtF, way2LatTxtF, way2LongTxtF,
                        way3AltTxtF, way3LatTxtF, way3LongTxtF });

        final javax.swing.GroupLayout mrModePanel2Layout = new javax.swing.GroupLayout(
                mrModePanel2);
        mrModePanel2.setLayout(mrModePanel2Layout);
        mrModePanel2Layout
                .setHorizontalGroup(mrModePanel2Layout
                        .createParallelGroup(
                                javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(
                                mrModePanel2Layout
                                        .createSequentialGroup()
                                        .addContainerGap()
                                        .addGroup(
                                                mrModePanel2Layout
                                                        .createParallelGroup(
                                                                javax.swing.GroupLayout.Alignment.LEADING)
                                                        .addComponent(
                                                                wayPoint1Panel,
                                                                javax.swing.GroupLayout.Alignment.TRAILING,
                                                                0, 464,
                                                                Short.MAX_VALUE)
                                                        .addComponent(
                                                                mrModeSndLabel))
                                        .addContainerGap()));
        mrModePanel2Layout
                .setVerticalGroup(mrModePanel2Layout
                        .createParallelGroup(
                                javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(
                                mrModePanel2Layout
                                        .createSequentialGroup()
                                        .addComponent(mrModeSndLabel)
                                        .addPreferredGap(
                                                javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(
                                                wayPoint1Panel,
                                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                                159,
                                                javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addContainerGap(
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                Short.MAX_VALUE)));

        final javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(layout.createParallelGroup(
                javax.swing.GroupLayout.Alignment.LEADING).addGroup(
                layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(mrModePanel2,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                Short.MAX_VALUE).addContainerGap()));
        layout.setVerticalGroup(layout.createParallelGroup(
                javax.swing.GroupLayout.Alignment.LEADING).addGroup(
                layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(mrModePanel2,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
                                Short.MAX_VALUE)));
    }// </editor-fold>

    private void cancelBtnActionPerformed(final java.awt.event.ActionEvent evt) {
        // getParent().
    }

    private void sendBtnActionPerformed(final java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }

    // Variables declaration - do not modify
    private javax.swing.JButton cancelBtn;
    private javax.swing.JPanel mrModePanel2;
    private javax.swing.JLabel mrModeSndLabel;
    private javax.swing.JButton sendBtn;
    private javax.swing.JLabel way1AltLabel;
    private javax.swing.JTextField way1AltTxtF;
    private javax.swing.JLabel way1Label;
    private javax.swing.JLabel way1LatLabel;
    private javax.swing.JTextField way1LatTxtf;
    private javax.swing.JLabel way1LongLabel;
    private javax.swing.JTextField way1LongTxtF;
    private javax.swing.JTextField way2AltTxtF;
    private javax.swing.JTextField way2LatTxtF;
    private javax.swing.JTextField way2LongTxtF;
    private javax.swing.JTextField way3AltTxtF;
    private javax.swing.JTextField way3LatTxtF;
    private javax.swing.JTextField way3LongTxtF;
    private javax.swing.JPanel wayPoint1Panel;
    private javax.swing.JLabel wayPoint2Label;
    private javax.swing.JLabel wayPoint3Label;

    // End of variables declaration

    public javax.swing.JTextField getWay3LongTxtF() {
        return way3LongTxtF;
    }

    public void setWay3LongTxtF(final javax.swing.JTextField way3LongTxtF) {
        this.way3LongTxtF = way3LongTxtF;
    }

    public javax.swing.JTextField getWay1AltTxtF() {
        return way1AltTxtF;
    }

    public javax.swing.JTextField getWay1LatTxtf() {
        return way1LatTxtf;
    }

    public javax.swing.JTextField getWay1LongTxtF() {
        return way1LongTxtF;
    }

    public javax.swing.JTextField getWay2AltTxtF() {
        return way2AltTxtF;
    }

    public javax.swing.JTextField getWay2LatTxtF() {
        return way2LatTxtF;
    }

    public javax.swing.JTextField getWay2LongTxtF() {
        return way2LongTxtF;
    }

    public javax.swing.JTextField getWay3AltTxtF() {
        return way3AltTxtF;
    }

    public javax.swing.JTextField getWay3LatTxtF() {
        return way3LatTxtF;
    }

}
